package me.wz.util.sdbc;

import java.util.Date;

public class Null {
    public static final Integer INT     = new Integer(Integer.MIN_VALUE);
    public static final Long LONG       = new Long(Long.MIN_VALUE);
    public static final String STRING   = new String();
    public static final Date DATE       = new Date(0);

    private static final Object[] NULLS = new Object[] {
            INT, LONG, STRING, DATE
    };

    public static boolean isNull(Object primitive) {
        for( Object n : NULLS ) {
            if( n == primitive ) {
                return true;
            }
        }
        return false;
    }
}
